<?php
class IndexAction extends Action{
    
    public function index(){
    	tsLoad('/webyufei/busi/IndexBusi.class.php');
    	$indexBusi = new IndexBusi();
    	$list = $indexBusi->getFloorTreeDataProxy();
    	$listSimple = $indexBusi->getSimpleTreeDataProxy();
    	$this->smarty->assign("floorList",$list);
    	$this->smarty->assign("simpleList",$listSimple);
    	$this->smarty->assign("jump",isset($_GET['jump'])?$_GET['jump']:null);
    	smartyDisplay($this->smarty,'/webyufei/page/index/indexView.php');
    	return $this->SMARTY;
    }
    
    public function addVisitCount(){
    	tsLoad('/webyufei/busi/IndexBusi.class.php');
    	$indexBusi = new IndexBusi();
    	$result = $indexBusi->addVisitCount($_POST);
    	$this->assign("result",$result);
    	return $this->JSON;
    }
}
?>